package org.example.c2;

import lombok.extern.slf4j.Slf4j;
import org.openjdk.jol.info.ClassLayout;
import org.openjdk.jol.vm.VM;
import sun.misc.Unsafe;

/**
 * @author liu-rui
 * @date 2020/6/1 下午2:51
 * @description 实践：Object对象占用多少内存空间?
 * @since
 */
@Slf4j
public class Demo10 {
    public static void main(String[] args) {
        log.info("{}", VM.current().details());
        log.info("{}", ClassLayout.parseInstance(new Object()).toPrintable());
    }
}
